package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.RiskMonitoring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RiskMonitoringMapper;
import com.ruoyi.system.service.IRiskMonitoringService;

/**
 * 风险监控Service业务层处理
 * 
 * @author ess
 * @date 2021-10-18
 */
@Service
public class RiskMonitoringServiceImpl implements IRiskMonitoringService 
{
    @Autowired
    private RiskMonitoringMapper riskMonitoringMapper;

    /**
     * 查询风险监控
     * 
     * @param riskId 风险监控主键
     * @return 风险监控
     */
    @Override
    public RiskMonitoring selectRiskMonitoringByRiskId(String riskId)
    {
        return riskMonitoringMapper.selectRiskMonitoringByRiskId(riskId);
    }

    /**
     * 查询风险监控列表
     * 
     * @param riskMonitoring 风险监控
     * @return 风险监控
     */
    @Override
    public List<RiskMonitoring> selectRiskMonitoringList(RiskMonitoring riskMonitoring)
    {
        return riskMonitoringMapper.selectRiskMonitoringList(riskMonitoring);
    }

    /**
     * 新增风险监控
     * 
     * @param riskMonitoring 风险监控
     * @return 结果
     */
    @Override
    public int insertRiskMonitoring(RiskMonitoring riskMonitoring)
    {
        return riskMonitoringMapper.insertRiskMonitoring(riskMonitoring);
    }

    /**
     * 修改风险监控
     * 
     * @param riskMonitoring 风险监控
     * @return 结果
     */
    @Override
    public int updateRiskMonitoring(RiskMonitoring riskMonitoring)
    {
        return riskMonitoringMapper.updateRiskMonitoring(riskMonitoring);
    }

    /**
     * 批量删除风险监控
     * 
     * @param riskIds 需要删除的风险监控主键
     * @return 结果
     */
    @Override
    public int deleteRiskMonitoringByRiskIds(String[] riskIds)
    {
        return riskMonitoringMapper.deleteRiskMonitoringByRiskIds(riskIds);
    }

    /**
     * 删除风险监控信息
     * 
     * @param riskId 风险监控主键
     * @return 结果
     */
    @Override
    public int deleteRiskMonitoringByRiskId(String riskId)
    {
        return riskMonitoringMapper.deleteRiskMonitoringByRiskId(riskId);
    }
}
